import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    // {
    //   path: '/',
    //   name: 'home',
    //   component: HomeView
    // },
    {
      path: '/',
      name: 'home',
      redirect: () => {
        return { path: '/edit' }
      }
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/date',
      name: 'data',
      component: () => import('../views/date/DateComponents.vue')
    },
    {
      path: '/edit',
      name: 'edit',
      component: () => import('../views/date/EditPage.vue')
    }
  ]
})

export default router
